home *** CD-ROM | disk | FTP | other *** search
- Path: ix.netcom.com!netnews
- From: dc30@ix.netcom.com(Diane Cogswell )
- Newsgroups: comp.lang.c++
- Subject: Help on assignment
- Date: 20 Feb 1996 23:48:06 GMT
- Organization: Netcom
- Message-ID: <4gdmjm$1kr@cloner4.netcom.com>
- NNTP-Posting-Host: ix-wor-ma1-04.ix.netcom.com
- X-NETCOM-Date: Tue Feb 20 3:48:06 PM PST 1996
-
- I'm hoping someone out there can help me out. I just started c++ and
- I'm having problems with a couple assinments. Don't think I recieved
- enough information.
- The first one:
- Write a function that normally takes one argument, the address of a
- string, and prints that string once. However, if a second, type int
- argument is provided and is greater than zero, the function prints the
- string the number of times equal to the number of times indicated.
-
- Second one is
- Write a function called zerosmaller that is passed to two int arguments
- by reference and then sets the smaller of the two numbers to 0. Write a
- main() program to exercise this function and print out the result.
- I would really appreciate any help anyone can give me. I understood
- Pascal but I'm having trouble trying to translate programs in c++.
- Thanks
- from discouraged
-